package src.week7.LEIJICHENG;

public abstract class Hero {
    String name;
    String mainposition;
    int money;

    public Hero(String name, String mainposition, int money) {
        this.name = name;
        this.mainposition = mainposition;
        this.money = money;
    }

    public Hero() {
        this.name = "";
        this.mainposition = "";
        this.money = 0;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMainposition() {
        return mainposition;
    }

    public void setMainposition(String mainposition) {
        this.mainposition = mainposition;
    }

    public int getMoney() {
        return money;
    }

    public void setMoney(int money) {
        this.money = money;
    }

    public abstract void getteamfight();

    @Override
    public String toString() {
        return "game{" +
                "name='" + name + '\'' +
                ", mainposition='" + mainposition + '\'' +
                ", money=" + money +
                '}';
    }

}